<?php
include('../config.inc.php');
include('../function/runid.php');
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=$charset\">";

	$no = $_POST[no];
	$day_process = $Current_date;
	$solution = $_POST['solution'];
	$username_process = $_POST['username_process'];
	$cost = $_POST['cost'];
	$status=3;

	echo "no ".$no;
	echo "<br>solution ".$solution;
	echo "<br>cost ".$cost;
	
	$sql = "update detail set solution='$solution', day_process='$day_process', username_process='$username_process', cost='$cost', status='$status' ,day_complete='$day_process' where no='$no'";
	$result = mysql_query($sql);
	echo "มีการปรับปรุงการแก้ไขเหตุเสีียรหัส => ".$no." แก้ไขโ้ดย  ".$username_process."<br>";
	echo $sql;
	if($result){
		echo "Update database complete";
	}
?>